import { get } from './api';
import { post } from './api';

export const getLogin = (query) => {
    const url = '/api-cloud-platform/login';
    return post(url, query);
};

export const getIndex = (query) => {
    const url = '/api-cloud-platform/home/index';
    return post(url, query);
};
// 审批人  获取用户
export const getSpUser = (query) => {
    const url = '/api/portal/interact/sprlist';
    return post(url, query);
};

export const getCodeImg = (timer) => {
    const url = `/api-cloud-platform/login/getVerfyCode?timer=${timer}`;
    return get(url, timer);
};
// 热门关键词
// export const topFive = (query) => {
//     const url = '/api-cloud-platform/home/topFive';
//     return post(url, query);
// };
export const topFive = (query) => {
  const url = xhDomain + `/api/dataSjbm/zxsj`
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
}
// 资源提供方
export const getProviderList = (query) => {
    const url = '/api-cloud-platform/home/providerList';
    return post(url, query);
};
// 获取更新周期
export const getUpdateCycle = (query) => {
    const url = `/api-cloud-platform/package/getDictList?type=${query}`;
    return get(url);
};
// 首页搜索
export const getHomeSeek = (query) => {
    const url = '/api-cloud-platform/home/seek';
    return post(url, query);
};
// 查询主题
export const getThemes = (query) => {
    const url = '/api-cloud-platform/home/theme';
    return post(url, query);
};
// ----------------  数据目录页相关  start
// 数据目录页
export const getCatalogData = (query) => {
    const url =xhDomain + '/api/meunDept/sonTree?type=1';
    return get(url, query);
};
// 数据目录页列表数据
export const getResourceList = (query) => {
    const url = '/api-cloud-platform/catalogData/resourceList';
    return post(url, query);
};
// 数据目录页列表数据
export const getResInfo = (query) => {
    const url = '/api-cloud-platform/resourceData/info';
    return post(url, query);
};
// 数据目录页搜索
export const getCatalogSeek = (query) => {
    const url = '/api-cloud-platform/catalogData/seek';
    return post(url, query);
};
// ----------------------  数据目录页相关  end
// ----------------------  服务目录页相关  start
// 服务目录页
export const getServerData = (query) => {
    const url = '/api-cloud-platform/catalogServer/catalog';
    return post(url, query);
};
// 服务目录页列表数据
export const getServerResList = (query) => {
    const url = '/api-cloud-platform/catalogServer/resourceList';
    return post(url, query);
};
// 服务目录页列表数据
export const getSerResInfo = (query) => {
    const url = '/api-cloud-platform/resourceServer/info';
    return post(url, query);
};
// 服务目录页列表数据
export const getErrorCode = (query) => {
    const url = '/api-cloud-platform/package/getErrorCodeDicList';
    return post(url, query);
};
// 服务目录页搜索
export const getServeSeek = (query) => {
    const url = '/api-cloud-platform/catalogServer/seek';
    return post(url, query);
};
// ---------------------  服务目录页相关 end
// 增长与访问趋势
export const getGrowTrend = (query) => {
    const url = '/api-cloud-manage/overview/growTrend';
    return post(url, query);
};
// 修改密码
export const getChangePassword = (query) => {
    const url = '/api-cloud-platform/operate/user/resetpwd';
    return post(url, query);
};
// 退出登录
export const getLogout = (query) => {
    const url = '/api-cloud-platform/logout';
    return post(url, query);
};
// 后台登录接口
export const getPcLogin = (query) => {
    const url = '/api-cloud-manage/login';
    return post(url, query);
};
// 个人概括
export const getOverview = (query) => {
    const url =xhDomain + '/api/userinfo/datacount';
  const config = { 'Content-Type': 'application/json' }
    return post(url, query, config);
};
// 获取用户个人信息
export const getInfo = (query) => {
  const url = xhDomain + `/api/userinfo/userdetail`
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
}
// 用户保存
export const getSaveInfo = (query) => {
    const url = '/api-cloud-platform/operate/user/saveInfo';
    return post(url, query);
};
// 机构访问分析
export const getListByIns = (query) => {
    const url = '/api-cloud-manage/accessStat/listByIns';
    return post(url, query);
};
// 服务来源统计
export const getOverviewInfo = (query) => {
    const url = '/api-cloud-manage/overview/info';
    return post(url, query);
};
// 用户 服务访问趋势  30天 0服务 1用户
export const getVisitTrend = (query) => {
    const url = '/api-cloud-manage/overview/visitTrend';
    return post(url, query);
};
// 用户 服务访问趋势 24小时 0服务 1用户
export const getVisitDayTrend = (query) => {
    const url = '/api-cloud-manage/overview/visitDayTrend';
    return post(url, query);
};
// 用户访问分析 列表
export const getUserTrendList = (query) => {
    const url = '/api-cloud-manage/overview/userTrendList';
    return post(url, query);
};
// 服务访问分析（表格数据）
export const getApiTrendList = (query) => {
    const url = '/api-cloud-manage/overview/apiTrendList';
    return post(url, query);
};
// tab栏标题
export const getTheme = (query) => {
    const url = '/api-cloud-platform/home/theme';
    return post(url, query);
};
// 点击tbs 传code
export const getResourceCode = (query) => {
    const url = `/api-cloud-platform/resourceData/item?code=${query}`;
    return get(url);
};
// 数据资源
export const getSeek = (query) => {
    const url = '/api-cloud-platform/home/seek';
    return post(url, query);
};
// 注册
export const getRegister = (query) => {
    const url = '/api-cloud-manage/operate/user/save';
    return post(url, query);
};
// logo图片
export const getLogo = (query) => {
    const url = '/portal-web/appearance/queryAppearanceByType';
    return post(url, query);
};
// 获取accesskey
export const getUserLogin = () => get("/api-cloud-platform/userLogin/info");
// 我的申请 数据资源
export const getApplyDataList = (query) => {
    const url = '/api-cloud-platform/operate/apply/applyDataList';
    return post(url, query);
};
// 审批详情
export const getApplyDataInfo = (query) => {
    const url = '/api-cloud-platform/operate/apply/applyDataInfo';
    return post(url, query);
};
// 删除资源申请
export const getDelApply = (query) => {
    const url = '/api-cloud-platform/operate/apply/delApply';
    return post(url, query);
};
// 我的申请/服务资源
export const getApplyApiList = (query) => {
    const url = '/api-cloud-platform/operate/apply/applyApiList';
    return post(url, query);
};
// 我的申请/我的接收库列表
export const getQueryByPage = (query) => {
  const url =xhDomain + '/api/userinfo/userdatabase';
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
};
// 我的申请/数据库类型  |  选择接收库类型
export const getDatasourceList = (query) => {
    const url = '/api-cloud-platform/resourceData/datasourceList';
    return post(url, query);
};
// 我的申请/测试连同
export const getDebug = (query) => {
    const url = '/api-cloud-platform/operate/destination/debug';
    return post(url, query);
};
// 我的申请/添加接收库
export const getdestinationSave = (query) => {
    const url = '/api-cloud-platform/operate/destination/save';
    return post(url, query);
};
// 我的申请/删除接收库
export const getdestinationDelete = (query) => {
    const url = '/api-cloud-platform/operate/destination/delete';
    return post(url, query);
};
// 我的申请/查看
export const getDestinationInfo = (query) => {
    const url = '/api-cloud-platform/operate/destination/getDestinationInfo';
    return post(url, query);
};
//  APP key 管理 刷新
export const getMyAppKey = (query) => {
  const url =xhDomain + '/api/userinfo/userappkey';
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
};
export const getRefresh = (query) => {
    const url = '/api-cloud-platform/operate/appKey/refresh';
    return post(url, query);
};
//   APP key 管理 列表
export const getBypassPage = (query) => {
    const url = '/api-cloud-platform/operate/bypass/page';
    return post(url, query);
};
// 启用 禁用
export const getEndisable = (query) => {
    const url = '/api-cloud-platform/operate/bypass/endisable';
    return post(url, query);
};
// 表格中的刷新
export const getBypassRefresh = (query) => {
    const url = '/api-cloud-platform/operate/bypass/refresh';
    return post(url, query);
};
// APP key 删除
export const getDypassdel = (query) => {
    const url = '/api-cloud-platform/operate/bypass/del';
    return post(url, query);
};
// APP key 添加
export const getDypassSave = (query) => {
    const url = '/api-cloud-platform/operate/bypass/save';
    return post(url, query);
};
// 我的资源|数据资源列表
export const getMyDataList = (query) => {
  const url = xhDomain + '/api/userinfo/userresource';
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
};
// 我的资源|服务资源
export const getMyApiList = (query) => {
    const url = '/api-cloud-platform/operate/api/myApiList';
    return post(url, query);
};
// 我的资源|停用
export const getStopData = (query) => {
    const url = '/api-cloud-platform/operate/api/stopData';
    return post(url, query);
};
// 我的资源|导出
export const getExportApiWord = (query) => {
    const url = '/api-cloud-platform/operate/api/exportApiWord';
    // responseType: 'blob' ;
    return post(url, query);
};
// 我的资源、交换历史
export const getTaskExecHistory = (query) => {
    const url = '/api-cloud-platform/operate/api/taskExecHistory';
    return post(url, query);
};
// 根据 接收库类型查接收库
export const getGetDestinations = (query) => {
    const url = '/api-cloud-platform/operate/destination/getDestinations';
    return post(url, query);
};
// 根据 接收库查数据表
export const getGetTables = (query) => {
    const url = '/api-cloud-platform/operate/destination/getTables';
    return post(url, query);
};
// 根据 数据表查接收表格数据
export const getGetColumns = (query) => {
    const url = '/api-cloud-platform/operate/destination/getColumns';
    return post(url, query);
};
// 确认申请
export const getApply = (query) => {
    const url = '/api-cloud-platform/resourceData/apply';
    return post(url, query);
};
// 申请文件目录
export const getGetDestinationDirFileList = (query) => {
    const url = '/api-cloud-platform/operate/destination/getDestinationDirFileList';
    return post(url, query);
};
// 下载模版
export const getCheckFile = (query) => {
    const url = '/api-cloud-platform/apiApply/checkFile';
    return post(url, query);
};
// 查看数据目录 api服务
export const getApiInfo = (query) => {
    const url = '/api-cloud-platform/resourceData/apiInfo';
    return post(url, query);
};
// 查看数据目录 表信息预览
export const getDataPreview = (query) => {
    const url = '/api-cloud-platform/resourceData/dataPreview';
    return post(url, query);
};
// 服务目录 申请
export const getApplys = (query) => {
    const url = '/api-cloud-platform/resourceServer/apply';
    return post(url, query);
};

// export const getJkcsjk = (urls, query) => {
//     const url = "/api-external/" + urls;
//     return post(url, query);
// };

export const getJkcsjk = (urls, query, timeout = 60000) => { // 默认超时时间设置为60秒
    const url = "/api-external/" + urls;
    return post(url, query, timeout); // 将超时时间传递给post函数
};
export const getJkcsjkApi = (urls, query, timeout = 60000) => { // 默认超时时间设置为60秒
    const url = "/api/zyfwpt/" + urls;
    return post(url, query, timeout); // 将超时时间传递给post函数
};
export const getMyDataInfo = (query) => {
    const url = '/api-cloud-platform/operate/api/myDataInfo';
    return post(url, query);
};


// 互动交流 数据需求
export const subXqData = (query) => {
    const url = xhHttp + '/api/interact/add'
    const config = { 'Content-Type': 'application/json' }
    return post(url, query, config);
}
//获取需求列表
export const getXqList = (query) => {
    const url = '/api/portal/interact/my';
    const config = { 'Content-Type': 'application/json' }
    return post(url, query, config);
};
// 获取审批需求
export const getSpxqList = (query) => {
    const url = '/api/portal/interact/auditList';
    const config = { 'Content-Type': 'application/json' }
    return post(url, query, config);
};
// 审批需求
export const subSpxq = (query) => {
    const url = '/api/portal/interact/audit';
    const config = { 'Content-Type': 'application/json' }
    return post(url, query, config);
};
// 转移审批
export const subSpzy = (query) => {
    const url = '/api/portal/interact/auditChange';
    const config = { 'Content-Type': 'application/json' }
    return post(url, query, config);
};

// 转移审批
export const getDept = (query) => {
    const url = `/api/meunDept?current=${query.current}&size=${query.size}&deptType=${query.deptType}`;
    const config = { 'Content-Type': 'application/json' }
    return get(url);
};

//首页资产一张图数据 7日内API调用Top10
export const shareApi = (query) => {
    const url = `/ccessinfo/searchAccessInfo//sharetrend?modelKey=Share.Api`;
    return get(url);
};
//首页资产一张图数据 7日内API调用Top10
export const shareDept = (query) => {
    const url = `/ccessinfo/searchAccessInfo//sharetrend?modelKey=Share.Dept`;
    return get(url);
};
//首页资产一张图数据 部门资源目录排名TOP10(个)
export const searchConditionGet = (query) => {
    const url = `/ccessinfo/searchAccessInfo//sharetrend?modelKey=Share.Path`;
    return get(url);
};
//首页资产一张图数据 数据条数Top10
export const searchConditionGetAd = (query) => {
    const url = `/ccessinfo/searchAccessInfo//accessdeptrank?searchCondition=AD0002`;
    return get(url);
};
export const sjlNum = (query) => {
  const url = xhHttp + '/api/zwmh/totalsjbm';
  const config = { 'Content-Type': 'application/json' }
  return get(url, query, config);
};
export const wjxzNum = (query) => {
  const url = xhHttp + '/api/zwmh/filedownloadcount';
  const config = { 'Content-Type': 'application/json' }
  return get(url, query, config);
};
export const yhylNum = (query) => {
  const url = xhHttp + '/api/zwmh/previewcount';
  const config = { 'Content-Type': 'application/json' }
  return get(url, query, config);
};
export const yhsyNum = (query) => {
  const url = xhHttp + '/api/zwmh/usecount';
  const config = { 'Content-Type': 'application/json' }
  return get(url, query, config);
};
export const yhsqNum = (query) => {
  const url = xhHttp + '/api/zwmh/appcount';
  const config = { 'Content-Type': 'application/json' }
  return get(url, query, config);
};
// IP调用排行
export const getSuccesstop = (query) => {
  const url = xhHttp + '/api/xhzf/apifw/successtop';
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
};
// 最新数据top10
export const getAllfiles = (query) => {
  const url = xhsHttp + '/api/zwmh/newsjbm';
  return get(url, query);
};
// 最热数据top110
export const getQueryapiranking = (query) => {
  const url = xhHttp + '/api/xhzf/apifw/queryapiranking';
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
};
// gateway流量变化趋势接口
export const getGateWay = (query) => {
  const url = xhsHttp + '/api/xhzf/apifw/queryZxt';
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
};
export const getUserCallCount = (query) => {
  const url = xhHttp + '/api/xhzf/apifw/queryUserCallCount';
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
};
// 错误码接口
export const getErrId = (query) => {
  const url = xhsHttp + '/api/xhzf/apifw/queryZxt';
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
};
// api调用总量接口
export const getApiTotal = (query) => {
  const url = xhsHttp + '/api/xhzf/apifw/queryZxt';
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
};
// 实时总流量
export const getZll = (query) => {
  const url = xhHttp + '/api/xhzf/totalflow';
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
};
// api调用列表图请求接口
export const getApiRanking = (query) => {
  const url = xhHttp + '/api/xhzf/apifw/queryapiranking';
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
};
// 总流量变化趋势接口
export const getZxt = (query) => {
  const url = xhsHttp + '/api/xhzf/apifw/queryZxt';
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
};
export const getMethods = (query) => {
  const url = xhsHttp + '/api/xhzf/apifw/queryZxt';
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
};
// 被攻击服务排行接口
export const getDeniedApiCount = (query) => {
  const url = xhHttp + '/api/xhzf/apifw/queryDeniedApiCount';
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
};
// 响应时长接口
export const getLatency = (query) => {
  const url = xhsHttp + '/api/xhzf/apifw/queryZxt';
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
};
export const getCode = (query) => {
  const url = xhDomain + '/auth/code';
  return get(url, query);
};
export const getLoginpc = (query) => {
  const url = xhDomain + '/auth/login'
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
}
export const getLoginout = (query) => {
  const url = xhDomain + '/auth/logout'
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
}
export const getSjmlTree = (query) => {
  const url = xhDomain + `/api/meunDept/frontTree?type=${query.type}`
  const config = { 'Content-Type': 'application/json' }
  return get(url);
}
export const getSjmlTreeList = (query) => {
  const url = xhDomain + `/api/meunDept/bmlistnet`
  const config = { 'Content-Type': 'application/json' }
  return post(url,query,config);
}

export const getFieldList = (query) => {
  const url = xhDomain + `/api/xhzf/fieldList?id=${query.id}`
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
}
export const getbsjxList = (query) => {
  const url = xhDomain + `/api/xhzf/data?id=${query.id}`
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
}
export const getApiList = (query) => {
  const url = xhDomain + `/api/xhzf/router?apiUuid=${query.apiUuid}`
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
}
export const getQueryparameterList = (query) => {
  const url = xhDomain + '/api/zwmh/queryparameter'
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
}
export const getConsumer = (query) => {
  const url = xhDomain + `/api/xhzf/appkey?workspaceUuid=2d8ff3afa92f461393e6b08ec4d880a0&userId=1`
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
}
export const getApiBmid = (query) => {
  const url = xhDomain + `/api/sjbm/apply/sjxs/${query}`
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
}
export const getSpr = (query) => {
  const url = xhDomain + `/api/sjbm/apply/getspr`
  const config = { 'Content-Type': 'application/json' }
  return post(url);
}
export const getAddapp = (query) => {
  const url = xhDomain + '/api/sjbm/apply/addapp'
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
}
export const getwebViewCount = (type) => {
    const url = xhDomain + `/auth/online/webViewCount?type=${type}`
    const config = { 'Content-Type': 'application/json' }
    return get(url, type);
};
export const getbmlist = (type) => {
    const url = xhDomain + `/api/meunDept/bmlist?id=${type.id}&pageNo=${type.pageNo}&size=10&deptType=${type.deptType}`
    // const config = { 'Content-Type': 'application/json' }
    return get(url, type);
};
export const getrouter = (type) => {
    const url = xhDomain + `/api/xhzf/router?apiUuid=${type.uuid}`
    const config = { 'Content-Type': 'application/json' }
    return post(url, type);
};

export const getqueryparameter = (type) => {
    const url = xhDomain + `/api/zwmh/queryparameter`
    const config = { 'Content-Type': 'application/json' }
    return post(url, type);
};
export const getdetail = (type) => {
    const url = xhDomain + `/api/zwmh/detail/${type.bmId}`
    const config = { 'Content-Type': 'application/json' }
    return post(url, type);
};
export const getdataSjbm = (query) => {
  const url = xhDomain + `/api/zwmh/bmdetail/${query.id}`
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
}
export const dataSjbmZrsj = (query) => {
  const url = xhDomain + `/api/dataSjbm/zrsj`
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
}

export const sjmlss = (query) => {
  const url = xhDomain + `/api/meunDept/searchbmlist?name=${query.name}`
  // const config = { 'Content-Type': 'application/json' }
  return get(url, query);
};
export const getspr = (query) => {
  const url = xhDomain + `/api/interact/getspr`
  const config = { 'Content-Type': 'application/json' }
  return post(url, query, config);
}
export const getdept = (query) => {
  const url = xhDomain + `/api/interact/getxhdept`
  const config = { 'Content-Type': 'application/json' }
  return get(url, query, config);
}
export const xqlist = (query) => {
  const url = xhDomain + `/api/interact/list`
  return post(url, query);
}
export const xqlistDetail = (query) => {
  const url = xhDomain + `/api/interact/detail/${query.id}`
  return post(url, query);
}

export const cxDeletebyid = (query) => {
  const url = xhDomain + `/api/interact/deletebyid/${query.id}`
  return post(url, query);
}

export const issjj = (query) => {
  const url = xhDomain + `/api/interact/issjj`
  return get(url, query);
}
// 审批列表
export const getbysprList = (query) => {
  const url = xhDomain + `/api/interact/getbyspr`
  return post(url, query);
}

export const getAuditdemand = (query) => {
  const url = xhDomain + `/api/interact/auditdemand`
  return post(url, query);
}
export const getGeatadeptsprataDept = (query) => {
  const url = xhDomain + `/api/interact/getdeptspr/${query}`
  return get(url, query);
}
export const geGetbydeptspr = (query) => {
  const url = xhDomain + `/api/interact/getbydeptspr`
  return post(url, query);
}
export const gecxtj = (query) => {
  const url = xhDomain + `/api/interact/detail/${query.id}`
  return post(url, query);
}
export const getupdatas = (query) => {
  const url = xhDomain + `/api/interact/update`
  return post(url, query);
}

export const getbbmsjzr = (query) => {
  const url = xhDomain + `/api/datatask/page`
  return post(url, query);
}
export const getbbmsjzrDetail = (query) => {
  const url = xhDomain + `/api/datatask/detail/${query.id}`
  return post(url, query);
}
export const getbbmsjzrUpdate = (query) => {
  const url = xhDomain + `/api/datatask/update`
  return post(url, query);
}
export const getuserbydept = (query) => {
  const url = xhDomain + `/api/datatask/getuserbydept`
  return post(url, query);
}
export const getuserSpr = (query) => {
  const url = xhDomain + `/api/datatask/getspr`
  return post(url, query);
}

export const getuserDelete = (query) => {
  const url = xhDomain + `/api/datatask/delete`
  return post(url, query);
}
export const getDeletebyid = (query) => {
  const url = xhDomain + `/api/datatask/deletebyid/${query.id}`
  return post(url, query);
}
export const getGetbyspr = (query) => {
  const url = xhDomain + `/api/datatask/getbyspr`
  return post(url, query);
}
export const getComplete = (query) => {
  const url = xhDomain + `/api/datatask/complete`
  return post(url, query);
}

export const getReapp = (query) => {
  const url = xhDomain + `/api/datatask/reapp`
  return post(url, query);
}

// 我的督办 By LZY on 240728
export const getMySupervisor = (query) => {
  const url = xhDomain + `/api/supervision/pagesupervision`
  return post(url, query);
}

// 督办列表 By LZY on 240728
export const getAllSupervisor = (query) => {
  const url = xhDomain + `/api/supervision/selsupervision`
  return post(url, query);
}

// 督办撤销 By LZY on 240728
export const deleteMyMySupervisor = (query) => {
  const url = xhDomain + `/api/supervision/delsv?id=${query}`
  return post(url);
}

// 提交督办意见 By LZY on 240728
export const submitSupervisor = (query) => {
  const url = xhDomain + `/api/supervision/examinedb`
  return post(url, query);
}
export const getAddsupervision = (query) => {
  const url = xhDomain + `/api/supervision/addsupervision/${query.id}`
  return post(url, query);
}
export const getDxyzm = (query) => {
  const url = xhDomain + '/api/sms/message';
  const config = { 'Content-Type': 'application/json' }
  return post(url,query,config);
};
export const getZxtype = (query) => {
  const url = xhDomain + '/api/meunDept/getType?id=11';
  const config = { 'Content-Type': 'application/json' }
  return get(url,query,config);
};
export const getZxadd = (query) => {
  const url = xhDomain + '/api/zxwz/add';
  const config = { 'Content-Type': 'application/json' }
  return post(url,query,config);
};
export const getZxList = (query) => {
  const url = xhDomain + '/api/zxwz/list';
  const config = { 'Content-Type': 'application/json' }
  return post(url,query,config);
};
export const getZxDelete = (query) => {
  const url = xhDomain + '/api/zxwz/delete';
  const config = { 'Content-Type': 'application/json' }
  return post(url,query,config);
};
export const getZxEdit = (query) => {
  const url = xhDomain + '/api/zxwz/edit';
  const config = { 'Content-Type': 'application/json' }
  return post(url,query,config);
};
export const getZxDetail = (query) => {
  const url = xhDomain + `/api/zxwz/detail?id=${query.id}`;
  const config = { 'Content-Type': 'application/json' }
  return get(url,query,config);
};
export const getHottestarea = (query) => {
  const url = xhDomain + '/api/zwmh/hottestarea';
  const config = { 'Content-Type': 'application/json' }
  return get(url,query,config);
};
export const getNewdownload = (query) => {
  const url = xhDomain + '/api/zwmh/newdownload';
  const config = { 'Content-Type': 'application/json' }
  return get(url,query,config);
};
export const getUpdateEmail = (query) => {
  const url = xhDomain + '/api/userinfo/updateEmail';
  const config = { 'Content-Type': 'application/json' }
  return post(url,query,config);
};
export const getUpdatephone = (query) => {
  const url = xhDomain + '/api/userinfo/updatePhone';
  const config = { 'Content-Type': 'application/json' }
  return post(url,query,config);
};
